<h1>
	<?php echo $this->Html->image('bootstrap/posts.png')?>
	菜单管理 
</h1>
<div class="bloc">
	<div class="title">
		<?php echo $this->element('admin/bread')?>
		<p><?php echo $this->Html->link(__('添加菜单'), array('action' => 'add')); ?></p>
	</div>
    <div class="content grid_content areas_content">
    	<!-- start content -->  
			<div style="width: 100%; height: 100%">
				<table id="grid_page"></table>
				<div id="pv_page"></div>
			</div>
		<!-- end content -->
	</div>
</div>
<script type="text/javascript">
Gootop.addTreeGridOp = function(){
	var ids = jQuery("#grid_page").jqGrid('getDataIDs'); 
	 for(var i=0;i < ids.length;i++){ 
		 var cl = ids[i]; 
		 modify = "<a href = '"+GM.RootScript+"admin/menu/menus/edit/"+cl+"' class = 'modify'>修改</a>　"; 
		 add =	  "<a href = '"+GM.RootScript+"admin/menu/menus/add/"+cl+"' class = 'add'>添加下级</a>";
		 jQuery("#grid_page").jqGrid('setRowData',ids[i],{act:modify + add}); 
	};
};
</script>
<style type="text/css">
.grid_content {
	padding: 0 !important;
}
#search_data_form .input{
	float:left;
	width:auto;
	margin-right:10px;
}
</style>
<?php echo $paginationScript;?> 
